The optimal way to boost creativity depends on your situation.